package com.wgke.bluetooth;

import android.app.Application;

import com.wgke.bluetooth.db.AppDatabase;
import com.wgke.bluetooth.utils.CommonUtil;

public class MyApplication extends Application {
    private static AppDatabase database;
    @Override
    public void onCreate() {
        super.onCreate();

        database = AppDatabase.getDatabase(this);
        CommonUtil.setContext(this);

    }
    public static AppDatabase getDatabase() {
        return database;
    }
}
